package design.onekey.controller;

import design.onekey.common.HttpResult;
import design.onekey.entity.UserAccount;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/api/test")
public class TestController {

    @RequestMapping(value = "/getTableList", method = RequestMethod.POST)
    public HttpResult getTableList(@RequestBody UserAccount model) {
        List<UserAccount> list = new ArrayList<>();
        return HttpResult.ok(list);
    }

}
